#---------------------------------------------------------------------------
#			SRLOS	BOOTLOADER	Makefile
#@breaf: build bootloader for SRLOS
#@autor: bloceanc
#@date : 7/10/2010
#@email: bloceanc@gmail.com
#---------------------------------------------------------------------------
boot.bin:boot_asm.o boot_c.o nand.o
	arm-linux-ld -Ttext 0x00000000 boot_asm.o boot_c.o -o boot.o nand.o
	arm-linux-objcopy -O binary -S boot.o boot.bin
boot_asm.o:boot.s
	arm-linux-as -EL boot.s -o boot_asm.o
boot_c.o:boot.h boot.c
	arm-linux-gcc -c boot.c -o boot_c.o
nand.o:nand.c Nand.h def.h 2440addr.h
	arm-linux-gcc -c nand.c -o nand.o
clean:
	rm boot_asm.o boot_c.o boot.o boot.bin nand.o
